package com.cxlin.cwanandroid.ui.views

import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import com.youth.banner.Banner

/**
 *
 * @Author: chenxunlin
 * @Date: 2024/5/20 15:06
 */
class WBanner : Banner {

    constructor(context: Context?) : super(
        context
    )

    constructor(context: Context?, attrs: AttributeSet?) : super(
        context, attrs
    )

    constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : super(
        context, attrs, defStyle
    )

    override fun dispatchTouchEvent(ev: MotionEvent?): Boolean {
        parent.requestDisallowInterceptTouchEvent(true)
        return super.dispatchTouchEvent(ev)
    }
}